﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T2Calc.ViewObjects
{
    public class MaterialView : BaseViewObject
    {
        #region Properties

        public long typeID;
        public long TypeID 
        {
            get
            {
                return this.typeID;
            }
            set
            {
                this.typeID = value;
                this.notifyPropertyChanged();
            }
        }

        public string typeName;
        public string TypeName
        {
            get
            {
                return this.typeName;
            }
            set
            {
                this.typeName = value;
                this.notifyPropertyChanged();
            }
        }

        public decimal amount;
        public decimal Amount
        {
            get
            {
                return this.amount;
            }
            set
            {
                this.amount = value;
                this.notifyPropertyChanged();
            }
        }

        public decimal price;
        public decimal Price
        {
            get
            {
                return this.price;
            }
            set
            {
                this.price = value;
                this.notifyPropertyChanged();
            }
        }

        public decimal sum;
        public decimal Sum
        {
            get
            {
                return this.sum;
            }
            set
            {
                this.sum = value;
                this.notifyPropertyChanged();
            }
        }

        #endregion

        public MaterialView(Int64 typeID, String typeName, Decimal amount, Decimal price, Decimal sum)
        {
            this.TypeID = typeID;
            this.TypeName = typeName;
            this.Amount = amount;
            this.Price = price;
            this.Sum = sum;
        }
    }
}
